// 全局样式

// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

// 容器样式
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

// 页面布局
.page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.main-content {
  padding: 20px;
  background: #f5f5f5;
  min-height: calc(100vh - 60px);
}

// 卡片样式
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

// 按钮样式增强
.el-button {
  border-radius: 6px;
  font-weight: 500;
}

.el-button--primary {
  background: linear-gradient(45deg, #409EFF, #36cfc9);
  border: none;
  
  &:hover {
    background: linear-gradient(45deg, #66b1ff, #5cdbd3);
  }
}

// 表单样式
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

// 表格样式
.el-table {
  .el-table__header {
    th {
      background: #f8f9fa;
      color: #333;
      font-weight: 600;
    }
  }
  
  .el-table__row {
    &:hover {
      background: #f5f7fa;
    }
  }
}

// 侧边栏样式
.sidebar {
  background: #001529;
  min-height: 100vh;
  
  .el-menu {
    border-right: none;
    background: #001529;
    
    .el-menu-item {
      color: rgba(255, 255, 255, 0.65);
      
      &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
      }
      
      &.is-active {
        background: #1890ff;
        color: #fff;
      }
    }
    
    .el-submenu__title {
      color: rgba(255, 255, 255, 0.65);
      
      &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
      }
    }
  }
}

// 头部导航样式
.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  
  .logo {
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    
    .avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #1890ff;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 500;
    }
  }
}

// 统计卡片
.stat-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #1890ff;
  
  .stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }
  
  .stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
  }
  
  .stat-trend {
    font-size: 12px;
    color: #52c41a;
  }
}

// 工具类
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-10 {
  gap: 10px;
}

.gap-20 {
  gap: 20px;
}

// 响应式设计
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  .form-container {
    padding: 20px;
    margin: 10px;
  }
  
  .main-content {
    padding: 10px;
  }
} 